package com.jx.gn.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import org.springframework.stereotype.Component;

@Data

@Component
@ConfigurationProperties(prefix = "dd")
public  class LinkdoodProperties {
    public String appId;
    public String secret;
    public String host;
    public String upload;
    public String python;


    /**
     * 获取上传文件路劲
     * @return
     */
    public  String getUploadUrl(){
        return host +upload;
    }

    /**
     * 获取发送消息路劲
     * @return
     */
    public  String getSenMsgUrl(){
        return host+CommParams.SEND_MES;
    }
    /**
     * 获取发送消息路劲
     * @return
     */
    public  String getInfoUrl(){
        return host+CommParams.GET_USER_INFO;
    }
}
